//
//  NIMKitSetting+ZLCustom.m
//  ZLYoYoIM_Example
//
//  Created by 赵磊 on 2021/1/15.
//  Copyright © 2021 itzhaolei. All rights reserved.
//

#import "NIMKitSetting+ZLCustom.h"
#import "UIImage+ZLIMCustom.h"
#import <NIMKit/UIImage+NIMKit.h>

@implementation NIMKitSetting (ZLCustom)

- (instancetype)init:(BOOL)isRight
{
    self = [super init];
    if (self)
    {
        if (isRight)
        {
            self.normalBackgroundImage    =  [[UIImage imageNamedInIM:@"icon_sender_text_node_normal"] resizableImageWithCapInsets:UIEdgeInsetsFromString(@"{18,25,17,25}") resizingMode:UIImageResizingModeStretch];
            self.highLightBackgroundImage =  [[UIImage imageNamedInIM:@"icon_sender_text_node_pressed"] resizableImageWithCapInsets:UIEdgeInsetsFromString(@"{18,25,17,25}") resizingMode:UIImageResizingModeStretch];
            
        }
        else
        {
            self.normalBackgroundImage    =  [[UIImage nim_imageInKit:@"icon_receiver_node_normal"] resizableImageWithCapInsets:UIEdgeInsetsFromString(@"{18,25,17,25}") resizingMode:UIImageResizingModeStretch];
            self.highLightBackgroundImage =  [[UIImage nim_imageInKit :@"icon_receiver_node_pressed"] resizableImageWithCapInsets:UIEdgeInsetsFromString(@"{18,25,17,25}") resizingMode:UIImageResizingModeStretch];
        }
    }
    return self;
}

@end
